package com.example.jdbcdemo.mapper;

import com.example.jdbcdemo.pojo.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//mybatis的mapper类,
//对应Customer客户
@Mapper
@Repository
public interface CustomerMapper {
    List<Customer> queryCustomerList();

    Customer queryCustomerById(int id);//根据id来查找，先放着不用它

    int addCustomer(Customer customer);

    int updateCustomerById(Customer customer);

    int deleteCustomer(int id);
}
